<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #a {
            width: 100px;
            height: 100px;
            position: absolute;
            background-color: #f00;
            left: 1000px;
        }
    </style>
</head>
<body>


    <div id="a"></div>

    <script src="../js/tools.js"></script>
    <script src="../js/move.js"></script>
    <script>


        move({
            el : '#a' ,
            prop : 'left' ,
            speed : 10 ,
            end : 0 , 
            cb : function() {
                console.log('结束了');
            }
        })




        var a = 'name' ;

        var obj = {
            // name : 'yy'
            // ['name'] : 'yy' 
            [a] : 'yy'
        }

        console.log(obj);   // 


    </script>
    
</body>
</html>